<template>
	<view class="my">
		<my-login v-if="!token"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import mymixins from '../../mixins/mymixins.js'
	import { mapState } from 'vuex'
	export default {
		// 使用混入
		mixins: [mymixins],
		computed: {
			...mapState('user', ['token'])
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.my, .page {
		height: 100%;
	}
</style>
